package core.hmxchen.test.one;
import core.hmxchen.log.annotation.LogPrint;
import core.hmxchen.log.enums.Level;
import core.hmxchen.log.enums.Print;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 *@ClassName LogPintController
 *@Description TODO
 *@Author hmxchen
 *@version v1.0.0
 *@Date 2021/9/5 16:12 
 */
@RestController
@RequestMapping("/log/print2")
public class LogPintController2 {
    @GetMapping("/logTest11")
    public Map<String, Object> logTest1(HttpServletRequest request, Map<String, Object> param) {
        Map<String, Object> result = new HashMap<>(3);
        result.put("code", 200);
        result.put("msg", "success");
        result.put("data", param);
        return result;
    }
    @LogPrint(biz = "请求日志打印测试")
    @GetMapping("/logTest212")
    public Map<String, Object> logTest212(HttpServletRequest request, Map<String, Object> param) {
        Map<String, Object> result = new HashMap<>(3);
        result.put("code", 200);
        result.put("msg", "success");
        result.put("data", param);
        return result;
    }
}
